Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added databricks_mws_workspaces data resource #1497

Merged
merged 6 commits into from
Jul 25, 2022
Merged

Added databricks_mws_workspaces data resource #1497

merged 6 commits into from
Jul 25, 2022

Conversation

nfx
Copy link
Contributor

@nfx nfx commented Jul 25, 2022

Fixes #1485

databricks_mws_workspaces Data Source

-> Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent authentication is not configured for provider errors.

Lists all databricks_mws_workspaces in Databricks Account.

-> Note account_id provider configuration property is required for this resource to work.

Example Usage

Listing all workspaces in

provider "databricks" {
  // other configuration
  account_id = "<databricks account id>"
}

data "databricks_mws_workspaces" "all" {}

output "all_mws_workspaces" {
  value = data.databricks_mws_workspaces.all.ids
}

Attribute Reference

-> Note This resource has an evolving interface, which may change in future versions of the provider.

This data source exports the following attributes:

  • ids - name-to-id map for all of the workspaces in the account

Related Resources

The following resources are used in the same context:

@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2022

Codecov Report

Merging #1497 (a4882f5) into master (d341963) will decrease coverage by 0.05%.
The diff coverage is 65.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1497      +/-   ##
==========================================
- Coverage   89.68%   89.63%   -0.06%     
==========================================
  Files         129      130       +1     
  Lines       10405    10428      +23     
==========================================
+ Hits         9332     9347      +15     
- Misses        694      700       +6     
- Partials      379      381       +2     
Impacted Files Coverage Δ
qa/testing.go 83.07% <0.00%> (-0.65%) ⬇️
common/reflect_resource.go 91.13% <50.00%> (-0.83%) ⬇️
mws/data_mws_workspaces.go 83.33% <83.33%> (ø)
provider/provider.go 95.10% <100.00%> (+0.03%) ⬆️

@nfx nfx merged commit d6a42e5 into master Jul 25, 2022
@nfx nfx deleted the feature/1485 branch July 25, 2022 18:49
@nfx nfx mentioned this pull request Aug 4, 2022
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] databricks_mws_workspaces data resource
2 participants